package com.ruoyi.system.domain.request.historyvideo;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.ruoyi.system.domain.request.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 描述
 * 作者 ZhangPing
 * 创建时间 2023/8/21 16:55
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class HistoryVideoServiceListParam extends BaseParam {

    @ApiModelProperty("设备号")
    @NotEmpty(message = "设备号不能为空")
    private String dvo;
    @ApiModelProperty("通道号")
    @NotNull(message = "设备号不能为空")
    private Integer channel;
    @ApiModelProperty("开始时间")
    @NotEmpty(message = "开始时间不能为空")
    private String startTime;
    @ApiModelProperty("结束时间")
    @NotEmpty(message = "结束时间不能为空")
    private String endTime;
    @ApiModelProperty(value = "页数", example = "10")
    private Integer pageSize = 10;
    @ApiModelProperty(value = "页码", example = "1")
    @JsonAlias({"pageNum", "pageIndex"})
    private Integer pageIndex = 1;
}
